<%--
  User: MiaoK
  Date: 11-8-24
  Time: 下午3:58
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Simple jsp page</title>
    <script type="text/javascript" src="../../js/jquery-1.6.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $("#commImg").click(function(){
                var data = "info=" + $("#info").val();
                $.ajax("/servlet/show64Image.go" , {
                    type:"post",
                    //url:"/servlet/show64Image.go",
                    data:data,
                    dataType:"html",
                    success:function(msg){
                        $("#img").attr("src" , "data:image/gif;base64," + msg);
                    }
                });
            });
        });
    </script>
</head>
<body>
<div>
    <textarea rows="4" cols="20" name="info" id="info"></textarea>
</div>
<div>
    <p id="base64S"></p>
</div>
<div>
    <input id="img" type="image" src=""/>
</div>
<div>
    <input id="commImg" type="button" value="commit info show Image"/>
</div>
</body>
</html>